package com.cj.dao;

import com.cj.po.Student;
import com.cj.po.Visitor;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface VisitorDao {

    Integer totalCount(@Param("v_name")String v_name, @Param("v_phone") String v_phone,@Param("v_dormIToryId") String v_dormIToryId,@Param("v_dormBuilding") String v_dormBuilding,@Param("create_time") Date create_time);
    List<Visitor> getVisitorList( @Param("v_name")String v_name, @Param("v_phone") String v_phone,@Param("v_dormIToryId") String v_dormIToryId,@Param("v_dormBuilding") String v_dormBuilding,@Param("create_time") Date create_time,
                                 @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);
    int deleteVisitor(Integer v_id);
    int addVisitor(Visitor visitor);
    int updateVisitor(Visitor visitor);
    Visitor findVisitorById(Integer v_id);
    List<Visitor> getAll();
}
